//
//  YZNetworkConfig.m
//  VET
//
//  Created by YZ on 2018/7/17.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZNetworkConfig.h"
#import "YZUser.h"

//#define Marval

@implementation YZNetworkConfig

+ (NSString *)getCurrentDomain
{
    NSString *domain =
    //        @"http://172.19.60.226:18084"; // zz
    //        @"http://172.19.60.30:18082";  // zx
    
#ifdef Marval
    @"http://172.19.100.31:18082"; // 开发
#else
     @"http://172.18.20.144:8080"; // 生产
#endif
   
    
    return domain;
    
}

+ (NSString *)getUrlCurrentDomain
{
#ifdef Marval
    return @"http://172.19.100.31:8800"; // 开发
#else
    return @"http://172.18.20.116:4090/yingzi-web-vet"; // 测试
#endif
}

+ (NSDictionary *)getImDomain
{
#ifdef Marval
    return @{@"ip":@"172.19.100.30",@"port":@"43210"}; // 开发
#else
    return @{@"ip":@"172.18.80.46",@"port":@"43210"};; // 测试
#endif
}


+ (NSString *)getCurrentToken
{
    return [YZUser sharedInstance].token;
}

+ (NSDictionary *)getGeneralParams
{
    if ([self getCurrentToken].length > 0)
    {
        return @{@"vet_token":[self getCurrentToken]};
    }else
    {
        return nil;
    }
}
@end
